
#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>

typedef void(^SMAPISuccess)(id json);
typedef void(^SMAPIFailure)(NSError *error);

@interface SMAPIClient : NSObject
@property (nonatomic, strong, readonly) AFHTTPSessionManager *manager;
+ (instancetype)shared;
- (void)GET:(NSString *)path parameters:(NSDictionary *)params success:(SMAPISuccess)success failure:(SMAPIFailure)failure;
- (void)POST:(NSString *)path parameters:(NSDictionary *)params success:(SMAPISuccess)success failure:(SMAPIFailure)failure;
@end
